package com.ftg.learn.framework.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.stereotype.Component;

/**
 * 目标类
 *
 * @author lijiaxin
 * @version 1.0
 * @date 2023/9/14 16:16
 */
@Component
public class MyTarget {

    public int add(){
        System.out.println("向数据库里面添加一个用户信息");
        return 1;
    }

}
